﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace TsCore
{
    [Table("TsUsers")]
    public class TsUser
    {
        [Key]
        public Int32 TsUserId { get; set; }
        [MaxLength(255)]
        public String Name { get; set; }
        [MaxLength(255)]
        public String Surname { get; set; }
        [MaxLength(255)]
        public String Email { get; set; }
        [MaxLength(255)]
        public String UserName { get; set; }
        

        public virtual List<Team> Favorites { get; set; }

        public TsUser()
        {
        }

        public TsUser(String Name, String Surname, String UserName, String Email, List<String> Roles)
        {
            this.Name = Name;
            this.Surname = Surname;
            this.UserName = UserName;
            this.Email = Email;
        }
    }
}
